<?php

/**
 * FootballFactory, Copyright Robin Loop & Pascal Wirz, 2013
 * ---
 * [Beschreibung der Datei]
 *
 * @author Robin
 */

include "redirector.php";
include "../ff_includes/class_database.php";
include "../ff_includes/class_article.php";

$db = new Database();
$articleList = Article::getArticleList();
$numbArticles = $articleList['totalRows'];
$articles = $articleList['articleList'];
?>

<!DOCTYPE HTML>
<html>
    <head>
        
        <!-- JQuery -->
        <script src="../js/jquery-1.8.3.min.js"></script>
        <script src="../js/jquery-ui-1.9.2.custom.min.js"></script>
        
        <!-- JS -->
        <script src="../js/admin_menu.js"></script>
        <script src="../js/admin_article.js"></script>
        
        <!-- CSS -->
        <link href="../css/admin.css" rel="stylesheet">
        <link href="../css/smoothness/jquery-ui-1.9.2.custom.css" rel="stylesheet">
        
    </head>

    <body>
        
        <?php include 'menu.php'; ?>
        
        <div>
            <h1>Artikel</h1>
                
            <div>
                <ul>
                    <?php
                    foreach ($articles as $article) {
                        print_r("<li>".$article->getTitle()."</li>");
                    }
                    ?>
                </ul>
            </div>
        </div>
    
    </body>
</html>